<template>
  <div class="page">
    <!-- banner 开始 -->
    <div class="banner">
      <h2 class="h2">专注贷款服务10年</h2>
      <h3 class="h3">最高可借（元）</h3>
      <h4 class="h4">200000.00</h4>
      <div class="line">
        <div class="cell">快速审批</div>
        <div class="cell">安全省心</div>
        <div class="cell">通过率高</div>
      </div>
    </div>
    <!-- banner 开始 -->

    <!-- 借款 开始 -->
    <div class="loan_box">
      <h2 class="h2">借款金额<span>(可修改试算金额)</span></h2>
      <!-- <button @click="test">跳转</button> -->
      <div class="input_box">
        <span>￥</span>
        <input type="tel" v-model="amount" class="a_input" maxlength="6" @input="onInput" />
      </div>

      <div class="menu_box">
        <div class="menu_row">
          <span class="name">借款期限</span>
          <div class="cell_list">
            <van-button :plain="active == item ? false : true" size="small" :type="active == item ? 'info' : 'default'" v-for="(item, index) in list" :key="index" class="btn" @click="onClick(item)">{{ item }}期</van-button>
          </div>
        </div>

        <div class="menu_row">
          <span class="name">每期应还</span>
          <div class="cell_list">￥{{ monthPay }}</div>
        </div>

        <div class="menu_row">
          <span class="name">到期总还</span>
          <div class="cell_list">￥{{ total }}</div>
        </div>
      </div>
      <h4 class="tips">
        *年化费率按照最低<span>6%</span>试算，具体以审核结果为准
      </h4>
    </div>
    <!-- 借款 end -->

    <!-- 信息 开始 -->
    <div class="info_box">
      <h2 class="h2">【填写真实信息，有助于贷款成功！】</h2>

      <!-- 单行数据 开始 -->
      <div class="row">
        <div class="input_box">
          <input type="text" v-model="form.name" placeholder="姓名" class="a_input" />
        </div>
        <div class="sex_box">
          <van-radio-group v-model="form.gender" direction="horizontal">
            <van-radio :name="1" checked-color="#FDCA4E">先生</van-radio>
            <van-radio :name="2" checked-color="#FDCA4E">女士</van-radio>
          </van-radio-group>
        </div>
      </div>
      <!-- 单行数据 end -->

      <!-- 单行数据 开始 -->
      <div class="row">
        <div class="input_box">
          <input type="tel" v-model="form.mobile" maxlength="11" placeholder="手机号码" class="a_input" />
        </div>
      </div>
      <!-- 单行数据 end -->

      <!-- 单行数据 开始 -->
      <div class="row">
        <div class="input_box">
          <input type="text" v-model="form.code" maxlength="6" placeholder="短信验证码" class="a_input" />
        </div>
        <div class="sex_box">
          <van-button type="info" size="small" @click="sendCode" :disabled="time > 0">{{ time > 0 ? time + "重新获取" : "点击获取" }}</van-button>
        </div>
      </div>
      <!-- 单行数据 end -->

      <!-- 协议 开始 -->
      <div class="xiyi_box" v-show="!showMore">
        <van-checkbox v-model="checked" checked-color="#434343" icon-size="16">接受<span @click.stop="lookContract">《服务协议》</span></van-checkbox>
      </div>
      <!-- 协议 end -->

      <div v-show="showMore">
        <!-- 单行数据 开始 -->
        <div class="row">
          <span class="name">请选择您的年龄</span>
          <div class="input_box selct_box" @click="openDialog">
            <span class="selct_view">{{
              form.age ? form.age + "岁" : "请选择"
            }}</span>
            <van-icon name="arrow-down" color="#1B54C0" />
          </div>
        </div>
        <!-- 单行数据 end -->

        <!-- 工作所在地 开始 -->
        <div class="title">工作所在地</div>
        <div class="city_list">
          <div class="cell" v-for="(item, index) in cityList" :key="index">
            <div class="cell_in" :class="address == item.name ? 'active' : ''" @click="chooseAddress(item.name)">
              {{ item.name }}
            </div>
          </div>
        </div>
        <p style="color:#f00;">金融机构不接受跨地区贷款申请</p>
        <!-- 工作所在地 end -->

        <!-- 完善信息快速审核（可多选） 开始 -->
        <div class="title">完善信息快速审核（可多选）</div>
        <div class="city_list info_list">
          <div class="cell" v-for="(item, index) in infoList" :key="index">
            <div class="cell_in" :class="form[item.id] == 1 ? 'active' : ''" @click="chooseInfo(item)">
              {{ item.name }}
            </div>
          </div>
          <div class="cell">
            <div class="cell_in" :class="infoActive == 1 ? 'active' : ''" @click="hasNothing">
              以上皆无
            </div>
          </div>
        </div>
        <!-- 完善信息快速审核（可多选） end -->

        <!-- 立即申请 开始 -->
        <div class="btn_group">
          <van-button size="large" type="info" @click="apply" :loading="loading">立即申请</van-button>
        </div>
        <!-- 立即申请 end -->

        <!-- 协议 开始 -->
        <div class="xiyi_box" v-show="showMore">
          <van-checkbox v-model="checked" checked-color="#434343" icon-size="16">接受<span @click.stop="lookContract">《服务协议》</span></van-checkbox>
        </div>
        <!-- 协议 end -->
      </div>
    </div>
    <!-- 信息 end -->

    <!-- 底部 开始 -->
    <div class="info_box footer_box">
      <h2 class="h2">10年来</h2>
      <h3 class="h3">我司已成功服务<span>113920</span>位客户</h3>
      <div class="show_list">
        <van-grid :column-num="3" :border="false">
          <van-grid-item>
            <h4 class="h4">14 <span>家</span></h4>
            <div class="tag">全国分公司</div>
          </van-grid-item>
          <van-grid-item>
            <h4 class="h4">9103 <span>个</span></h4>
            <div class="tag">合作产品</div>
          </van-grid-item>
          <van-grid-item>
            <h4 class="h4">420 <span>亿</span></h4>
            <div class="tag">累计放款额</div>
          </van-grid-item>
        </van-grid>
      </div>
      <p>*公积金相关资料仅作为贷款服务验资证明，房贷路径与公积金账户无关</p>
      <p>贷款有风险，借款需谨慎，请根据个人人防能力合理贷款</p>
      <p>贷款额度、放款时间等以实际审批为准</p>
      <p style="color:#f00;">金融服务将根据您的个人情况由适合的正规金融机构提供</p>
      <p class="p1">出资主体：广州市熊猫互联网小额贷款有限公司</p>
      <p class="p1">综合年化利率最低7%-最高24%，具体审核为准</p>
      <p class="p1">商务合作：400-0574-668</p>
      <p class="p2">浙ICP备2021016270号-1</p>
    </div>
    <!-- 底部 end -->

    <!-- 弹框 开始 -->
    <van-popup v-model="showPopup" position="bottom">
      <van-picker show-toolbar :columns="ageList" @confirm="onConfirm" @cancel="closeDialog" />
    </van-popup>
    <!-- 弹框 end -->

    <!-- 确认城市弹框 开始 -->
    <van-dialog v-model="showDialog" title="提示" show-cancel-button @confirm="submit" :before-close="beforeClose">
      <div class="van_dialog">
        <h2 class="h2">为了更好的为您服务，请问您的常驻城市是？</h2>
        <div class="city_list_box">
          <van-button class="van_button" size="small" v-for="(item, index) in confirmList" :key="index" :type="confirmCity == item ? 'info' : 'default'" @click="chooseCity(item)">{{ item }}</van-button>
        </div>
      </div>
    </van-dialog>
    <!-- 确认城市弹框 end -->
  </div>
</template>

<script>
import {
  GETCITYLIST,
  MARKETINGADD,
  GETIPINFO,
  GETCODE,
  GETMOBILEADDRESS,
  SAVEINFO,
  SENDREPORTING,
  SENDMARKETINGREPORTING
} from "@/http/interface";
import {
  RadioGroup,
  Radio,
  Checkbox,
  Grid,
  GridItem,
  Toast,
  Dialog,
  Button,
  Popup,
  Picker,
} from "vant";
import {
  checkPhone,
  showToast,
  showLoading,
  hideLoading,
  getUrlParams,
} from "@/common/util";
export default {
  components: {
    [Button.name]: Button,
    [RadioGroup.name]: RadioGroup,
    [Radio.name]: Radio,
    [Checkbox.name]: Checkbox,
    [Grid.name]: Grid,
    [GridItem.name]: GridItem,
    [Dialog.Component.name]: Dialog.Component,
    [Popup.name]: Popup,
    [Picker.name]:Picker
  },
  data() {
    return {
      list: [12, 24, 36, 60, 96],
      active: 12,
      radio: 1,
      // cityList: [{ name: "北京市" }],
      // address: '北京市',
      // cityList: [{ name: "南京市" }],
      // address: '南京市',
      // cityList: [{ name: "上海市" }],
      // address: '上海市',
      // cityList: [{ name: "杭州市" }],
      // address: '杭州市',
      // cityList: [{ name: "徐州市" }],
      // address: '徐州市',
      cityList: [],
      address: "",
      infoList: [
        { name: "有打卡工资", id: "getwayIncome", value: 1 },
        { name: "我有公积金", id: "publicFund", value: 1 },
        { name: "有营业执照", id: "company", value: 1 },
        { name: "我有商品房", id: "house", value: 1 },
        { name: "我有私家车", id: "car", value: 1 },
        { name: "我有买保险", id: "insurance", value: 1 },
      ],
      infoActive: "",
      checkList: {},
      checked: false,
      amount: 200000,
      monthPay: 0,
      total: 0,
      form: {
        gender: 1,
        company: 2,
        getwayIncome: 2,
        house: 2,
        insurance: 2,
        publicFund: 2,
        car: 2,
      },
      ageList: [],
      showPopup: false,
      time: 0,
      showMore: false,
      ipCity: "",
      confirmList: [],
      showDialog: false,
      confirmCity: "",
      loading: false,
      applyInfo: {},
      adId: "",
    };
  },
  mounted() {
    this.getCity();
    this.send();
    this.getIp();
    this.calculate();

    let arr = [];
    for (let i = 25; i <= 55; i++) {
      arr.push(i);
    }
    this.ageList = arr;
  },
  methods: {
    /** 选择借款期数 */
    onClick(e) {
      this.active = e;
      this.calculate();
    },

    /** 选择工作地 */
    chooseAddress(e) {
      this.address = e;
    },

    /** 选择信息 */
    chooseInfo(e) {
      let o = this.form;
      console.log(o);
      if (o[e.id] == 1) {
        this.$set(this.form, e.id, 2);
      } else {
        this.$set(this.form, e.id, 1);
      }
      this.infoActive = "";
    },

    /** 选择以上皆无 */
    hasNothing() {
      let o = this.form;
      o.company = 2;
      o.getwayIncome = 2;
      o.house = 2;
      o.insurance = 2;
      o.publicFund = 2;
      o.car = 2;
      this.$set(this, "form", o);
      this.infoActive = 1;
    },

    /** 获取城市列表 */
    getCity() {
      let _this = this;
      GETCITYLIST().then((res) => {
        console.log(res);
        let obj = res.data || {};
        let list = obj.childList || [];
        let arr = [];
        list.map((k) => {
          arr = arr.concat(k.childList);
        });
        _this.cityList = arr;
        _this.address = arr[0] ? arr[0].name : "";
      });
    },

    /** 进入首页 埋点 */
    send() {
      let _this = this;
      let o = getUrlParams();
      let oParams = {};
      let base64 = this.toBase64();
      oParams.accountId = o.accountId;
      oParams.channel = o.channel;
      oParams.urlBase64 = base64;
      oParams.clickId = o.gdt_vid;
      console.log(oParams);
      MARKETINGADD(oParams).then((res) => {
        if (res.code != 0) {
          Toast(res.message || res.msg || "出错了，请联系管理员");
          return false;
        }
        _this.adId = res.o;
      });
    },

    /** 获取base64 */
    toBase64() {
      let url = window.location.href;
      let n = encodeURI(url);
      var base64 = btoa(n);
      return base64;
    },

    /** 获取ip */
    getIp() {
      let _this = this;
      GETIPINFO().then((res) => {
        console.log(res);
        if (res.code != 0) {
          Toast(res.message || res.msg || "出错了，请联系管理员");
          return false;
        }
        let obj = res.o || {};
        _this.ipCity = obj.city;
      });
    },

    /** 计算 */
    calculate() {
      let o = Number(this.amount);
      let m = Number(this.active);
      console.log(o);
      if (!o) {
        this.monthPay = 0;
        this.total = 0;
        return false;
      }

      //每期应还
      let mPay = ((o * 6) / 100 + o) / m;

      //到期总还
      let total = o + (o * 6) / 100;
      this.monthPay = mPay.toFixed(2);
      this.total = Number(total).toFixed(2);
    },

    /** 监听贷款金额输入 */
    onInput(e) {
      this.calculate();
    },

    /** 获取短信验证码 */
    sendCode() {
      let that = this;
      let time = 60;
      let o = this.form.mobile;
      if (!o) {
        Toast("请输入手机号码");
        return false;
      }

      if (!checkPhone(o)) {
        Toast("手机号码格式不正确");
        return false;
      }

      let m = setInterval(function () {
        if (time == 0) {
          clearInterval(m);
          that.time = "";
          return false;
        }
        time--;
        that.time = time--;
      }, 1000);

      this.showMore = true;
      GETCODE({ mobile: o }).then((res) => {
        console.log(res);
        if (res.code != 0) {
          Toast(res.message || res.msg || "出错了，请联系管理员");
          return false;
        }
        //that.form.code = res.data;
      });
    },

    /** 选择年纪 */
    onConfirm(e) {
      console.log(e);
      this.form.age = e;
      this.closeDialog();
    },

    /** 打开弹框 */
    openDialog() {
      this.showPopup = true;
    },

    /** 关闭弹框 */
    closeDialog() {
      this.showPopup = false;
    },

    /** 立即申请 */
    apply() {
      let _this = this;
      let o = this.form;
      if (!this.amount) {
        Toast("请输入贷款金额");
        return false;
      }
      if (!o.name) {
        Toast("请输入姓名");
        return false;
      }

      if (!o.name) {
        Toast("请输入姓名");
        return false;
      }

      if (!o.mobile) {
        Toast("请输入手机号码");
        return false;
      }

      if (!checkPhone(o.mobile)) {
        Toast("手机号码格式不正确");
        return false;
      }

      if (!o.code) {
        Toast("请输入验证码");
        return false;
      }

      if (!o.age) {
        Toast("请选择年龄");
        return false;
      }

      if (!this.address) {
        Toast("请选择工作所在地");
        return false;
      }

      // if(!this.infoActive){
      //   Toast('请选择完善信息');
      //   return false;
      // }

      if (!this.checked) {
        Toast("请勾选服务协议");
        return false;
      }
      let m = getUrlParams();
      let oParams = JSON.parse(JSON.stringify(o));
      oParams.channel = m.channel;
      oParams.loanAmount = this.amount;
      oParams.city = this.address;
      console.log(oParams);

      // 选中的城市都一致
      // _this.loading = true;
      //  _this.applyInfo = oParams;
      // _this.submit(oParams);
      // return false;

      // 获取手机归属地
      this.getMobileAddress()
        .then((res) => {
          // if(res.code != 0){
          //   Toast(res.message || res.msg || '出错了，请联系管理员')
          //   return false;
          // }
          console.log(res);
          let nm = res.City || "";
          if (nm && nm[nm.length - 1] != "市") {
            nm = nm + "市";
          }
          let arr = _this.judageCity(nm);

          // 选中的城市都一致
          _this.loading = true;
          if (!arr || arr.length <= 0) {
            _this.submit(oParams);
          } else {
            _this.showDialog = true;
            _this.confirmList = arr;
            _this.applyInfo = oParams;
            _this.loading = false;
          }
        })
        .catch((res) => {
          let arr = _this.judageCity("");

          // 选中的城市都一致
          _this.loading = true;
          if (!arr || arr.length <= 0) {
            _this.submit(oParams);
          } else {
            _this.showDialog = true;
            _this.confirmList = arr;
            _this.applyInfo = oParams;
            _this.loading = false;
          }
        });
      return false;
    },

    /** 提交信息 */
    submit(options) {
      let _this = this;
      let oParams = this.applyInfo;
      if (options) {
        oParams = options;
      }

      if (!options && !this.confirmCity) {
        Toast("请选择常驻城市");
        return false;
      }

      if (!options) {
        oParams.city = this.confirmCity;
      }

      SAVEINFO(oParams).then((res) => {
        _this.loading = false;
        if (res.code != 0) {
          Toast(res.message || res.msg || "出错了，请联系管理员");
          return false;
        }
        _this.toReport();
        _this.$router.push({ name: "result" });
      });
      return false;
    },

    /** 获取手机号码归属地 */
    getMobileAddress() {
      let _this = this;
      let oParams = {};
      oParams.mobile = _this.form.mobile;
      return new Promise((resolve, reject) => {
        GETMOBILEADDRESS(oParams)
          .then((res) => {
            resolve(res);
          })
          .catch((error) => {
            reject(error);
          });
      });
    },

    /** 判断地址 */
    judageCity(city) {
      let _this = this;
      let list = this.cityList;
      let ic = this.ipCity; //ip所在城市
      let c = _this.address; //选中的城市
      let arr = [];

      if (!city) {
        let iop = ic == c;
        if (!iop) {
          arr.push(ic);
          arr.push(c);
        }
        return arr;
      }

      let isPass = ic.indexOf(city) >= 0 || city.indexOf(ic) >= 0;
      if (!isPass) {
        arr.push(ic);
        arr.push(city);
      }

      //let child = c.childList;
      let isTrue = c.indexOf(city) >= 0 || city.indexOf(c) >= 0;
      console.log(city + "--" + c + "--" + ic);
      // child.map((k) => {
      //   let _name = k.name;
      //   console.log(_name);
      //   isTrue = _name.indexOf(city) >= 0 || city.indexOf(_name) >= 0;
      //   console.log(isTrue);
      // });
      console.log(arr);
      if (!isTrue) {
        let idx = arr.findIndex((k) => k == city);
        arr.push(c);
        if (idx < 0) {
          arr.push(city);
        }
      }
      console.log(arr);
      return arr;
    },

    /** 选择城市 */
    chooseCity(item) {
      this.confirmCity = item;
    },

    /** 关闭弹框 */
    beforeClose(action, done) {
      if (action === "confirm") {
        //this.submit('',done);
        done(false);
      } else {
        done();
      }
    },

    /** 广告上报 */
    toReport() {
      let _this = this;
      let o = getUrlParams();
      let oParams = {};
      let base64 = this.toBase64();
      oParams.accountId = o.accountId;
      oParams.channel = o.channel;
      oParams.urlBase64 = base64;
      oParams.clickId = o.gdt_vid;
      console.log(oParams);
      //o.mId = this.adId;
      //SENDREPORTING(oParams);
      SENDMARKETINGREPORTING({mId:this.adId})
    },

    /** 查看合同 */
    lookContract() {
      //this.$router.push({name:'result'})
      window.location.href = "http://gdt.daofen100.com/agree/show.html";
    },
  },
};
</script>

<style lang="less">
html,
body {
  background: #f0f0f0;
}
</style>
<style lang="less" scoped>
.page {
  background: #f0f0f0;
  min-height: 100vh;
}
.banner {
  position: relative;
  width: 100%;
  height: 300px;
  background: url("../../images/banner.jpg") no-repeat;
  background-size: cover;
  overflow: hidden;
  .h2 {
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    padding: 8px 10px;
    background: linear-gradient(
      206deg,
      rgba(17, 65, 150, 0.05) 0%,
      #0b2d82 64%,
      #021064 100%
    );
  }
  .h3,
  .h4 {
    text-align: center;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 2px #00225f;
    font-weight: normal;
  }
  .h3 {
    font-size: 24px;
    font-family: Segoe UI;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 10px;
  }
  .h4 {
    font-family: Segoe UI;
    font-size: 56px;
    line-height: 1.5;
    letter-spacing: 2px;
  }
  .line {
    display: flex;
    border-bottom: 1px dashed #fff;
    height: 40px;
    margin: 0px 40px 0 40px;
    position: relative;
    .cell {
      position: relative;
      flex: 1;
      text-align: center;
      font-family: PingFang SC;
      font-weight: 500;
      color: #ffffff;
    }
    .cell:first-child {
      text-align: left;
    }
    .cell:last-child {
      text-align: right;
    }
    .cell:after {
      display: block;
      content: "";
      position: absolute;
      width: 10px;
      height: 10px;
      border-radius: 100%;
      background: #fff;
      left: 50%;
      bottom: -5px;
      transform: translate(-50%, 0);
    }
    .cell:first-child:after {
      left: 0px;
    }
    .cell:last-child:after {
      left: auto;
      right: 0px;
      transform: translate(0, 0);
    }
  }
}
//借款
.loan_box {
  position: relative;
  top: -60px;
  z-index: 2;
  background: #ffffff;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  margin: 0 15px;
  //min-height: 300px;
  border-radius: 6px;
  padding: 10px 0;
  box-sizing: border-box;
  .h2 {
    margin: 0;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 500;
    color: #a5a5a5;
    padding: 0 20px;
    span {
      font-size: 10px;
      margin-left: 5px;
    }
  }
  .input_box {
    height: 40px;
    background: rgba(234, 241, 254, 0.32);
    border-radius: 6px;
    display: flex;
    align-items: baseline;
    margin: 10px 20px;
    span {
      font-size: 12px;
      text-align: right;
      margin-left: 10px;
      font-weight: bold;
    }
    .a_input {
      flex: 1;
      width: 100%;
      height: 100%;
      border: 0;
      background: none;
      padding: 0 10px;
      box-sizing: border-box;
      color: #000;
      font-size: 24px;
    }
  }
  .menu_box {
    position: relative;
    margin-top: 20px;
    border-top: 1px dashed #ddd;
    padding: 0px 20px;
  }
  .menu_box:after,
  .menu_box:before {
    display: block;
    content: "";
    width: 20px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 100%;
    position: absolute;
    top: -10px;
  }
  .menu_box:after {
    // clip: rect(0px 20px 20px 10px);
    left: -10px;
  }
  .menu_box:before {
    right: -10px;
    // clip: rect(0px 10px 20px 0);
  }
  .menu_row {
    display: flex;
    align-items: center;
    margin: 15px 0;
    .name {
      // width: 80px;
      text-align: left;
      font-size: 14px;
      font-family: PingFang SC;
      font-weight: 500;
      color: #1b54c0;
    }
    .cell_list {
      flex: 2;
      text-align: right;
      .btn {
        margin: 0 2px;
        border-radius: 2px;
      }
    }
  }
  .tips {
    font-size: 12px;
    text-align: center;
    font-weight: normal;
    color: #a5a5a5;
    margin: 10px 0;
    span {
      color: #1b54c0;
    }
  }
}
// 信息
.info_box {
  position: relative;
  background: #ffffff;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  margin: 0 15px 15px 15px;
  //min-height: 300px;
  border-radius: 6px;
  padding: 20px;
  box-sizing: border-box;
  margin-top: -50px;
  .h2 {
    margin: 0;
    // font-weight: normal;
    text-align: center;
    font-size: 14px;
    margin-bottom: 30px;
  }
  .row {
    display: flex;
    align-items: center;
    margin: 25px 0;
    .name {
      font-size: 14px;
      margin-right: 10px;
    }
    .input_box {
      flex: 1;
      background: rgba(245, 245, 245, 0.6);
      box-shadow: -2px -2px 2px rgba(0, 0, 0, 0.2);
      // opacity: 0.6;
      border-radius: 6px;
      height: 34px;
      display: flex;
      align-items: center;
      .a_input {
        border: 0;
        background: none;
        width: 100%;
        height: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        color: #333;
      }
    }
    .sex_box {
      padding-left: 10px;
      .van-radio__label {
        font-size: 12px !important;
      }
    }
    .selct_box {
      padding: 0 10px;
      font-size: 14px;
      .selct_view {
        flex: 1;
        margin: 0;
        color: #1b54c0;
      }
    }
  }
}
.city_list {
  display: flex;
  flex-wrap: wrap;

  margin: 10px 0;
  .cell {
    width: 25%;
    padding: 0 6px;
    box-sizing: border-box;
    margin: 6px 0;
    .cell_in {
      position: relative;
      background: #f5f5f5;
      padding: 8px 0;
      width: 100%;
      text-align: center;
      border-radius: 6px;
      font-size: 12px;
      overflow: hidden;
    }
    .active:after {
      position: absolute;
      display: block;
      content: "";
      width: 20px;
      height: 17px;
      background: url("../../images/arrow.png") no-repeat;
      right: 0;
      bottom: 0;
      background-size: contain;
    }
  }
}
.info_list {
  justify-content: space-between;
  .cell {
    width: 33.333%;
  }
  .cell:last-child {
    width: 100%;
  }
}
.xiyi_box {
  font-size: 12px;
  padding: 10px 0;
}
.footer_box {
  text-align: center;
  padding: 10px 0;
  margin-top: 0;
  .h2,
  .h3 {
    margin: 0;
  }
  .h2 {
    font-size: 18px;
    font-family: PingFang SC;
    font-weight: 800;
    color: #434343;
  }
  .h3 {
    font-weight: normal;
    font-size: 14px;
    font-family: PingFang SC;
    color: #a5a5a5;
    line-height: 2;
  }
  p {
    text-align: center;
    font-size: 10px;
    margin: 0;
    line-height: 1.8;
  }
  .p1 {
    margin-top: 10px;
  }
  .p1,
  .p2 {
    font-size: 8px;
    color: #a5a5a5;
  }
}
.show_list {
  padding: 0 15px;
  margin-bottom: 20px;
  .h4 {
    font-size: 24px;
    color: #dd0000;
    margin: 15px 0;
    span {
      font-size: 12px;
      color: #a5a5a5;
    }
  }
  .tag {
    //background:#DFE0E3;
    background-color: rgba(223, 224, 227, 0.37);
    border-radius: 4px;
    padding: 4px 0;
    width: 100%;
    font-size: 14px;
    color: #585858;
  }
}
.van_dialog {
  padding: 20px;
  .h2 {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
  }
  .city_list_box {
    padding: 10px 0;
    .van_button {
      margin: 0 10px 0 0;
    }
  }
}
</style>
